let str = '阶段,名字,价格,人数/lv,name,price,peoples/1,筑基,19.9,26/2,辟谷,99,15/3,金丹,199,8'
let arr = str.split('/').map(element => 
    element.split(',')
);
console.log(arr);

let objArr = [];
for (let i = 0; i < 3; i++)
{
    let obj = {};
    for (let j = 0; j < 4; j++) {
        let key = arr[1][j];
        let value = arr[i + 2][j];
        obj[key] = value;
    }
    objArr.push(obj);
};
console.log(objArr);

function countRecord(data)
{
    return data.price * data.peoples;
};
console.log('单个总价 ： ' + countRecord(objArr[0]))

function countRecordAll(datas)
{
    let total = 0;
    datas.forEach(element => {
        total += countRecord(element)
    });

    return total;
};
console.log('所有总价 ： ' + countRecordAll(objArr))

function testPrint(num)
{
    for (let i = 1; i <= num; i++) 
    {
        if (i % 3 === 0 && i % 5 == 0)
        {
            console.log('Fizz-Buzz');
        }
        else if (i % 3 === 0)
        {
            console.log('Fizz');
        }
        else if (i % 5 === 0)
        {
            console.log('Buzz');
        }
        else
        {
            console.log(i);
        }
    }
};
testPrint(100);